package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/*
 * 作 者： linqinghai
 * 创建时间：2018/12/4
 */
@ApiModel(description ="修改密码参数")
public class ModifyPwdEvt implements Serializable {
    private static final long serialVersionUID = -224072511157195309L;
    @ApiModelProperty("旧密码")
    @NotBlank
    private String oldPwd;
    @ApiModelProperty("新密码")
    @NotBlank
    private String newPwd;
    @ApiModelProperty("用户名")
    private String loginName;

    @Override
    public String toString() {
        return "ModifyPwdEvt{" +
            "oldPwd='" + oldPwd + '\'' +
            ", newPwd='" + newPwd + '\'' +
            ", loginName='" + loginName + '\'' +
            '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }
}
